package com.fick.hibernate.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Vote entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Vote implements java.io.Serializable {

	// Fields

	private Integer investId;

	private String question;

	private Date addDate;
	
	private int isCheckbox;

	private Set voteinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Vote() {
	}

	/** full constructor */
	public Vote(String question, Date addDate, Set voteinfos) {
		this.question = question;
		this.addDate = addDate;
		this.voteinfos = voteinfos;
	}

	// Property accessors

	public Integer getInvestId() {
		return this.investId;
	}

	public void setInvestId(Integer investId) {
		this.investId = investId;
	}

	public String getQuestion() {
		return this.question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public Date getAddDate() {
		return this.addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

	public Set getVoteinfos() {
		return this.voteinfos;
	}

	public void setVoteinfos(Set voteinfos) {
		this.voteinfos = voteinfos;
	}

	public int getIsCheckbox() {
		return isCheckbox;
	}

	public void setIsCheckbox(int isCheckbox) {
		this.isCheckbox = isCheckbox;
	}

}